<?php

		$guid = get_input('guid',0);
		if ($entity = get_entity($guid)) {
			
			if ($entity->canEdit()) {
				
				if ($entity->delete()) {
					
					system_message(elgg_echo("referential:delete:success"));
					forward($vars['url']."mod/referential/");					
					
				}
				
			}
			
		}
		
		register_error(elgg_echo("bookmarks:delete:failed"));
		forward($vars['url']."mod/referential/");

?>